Imagedata Element | Internet Development Index |
Defines an image for a shape.
The following attributes modify an image.
Attribute | Description |
AltHRef | Specifies an alternate reference for an image. |
Bilevel | Determines whether an image will display in black and white. |
BlackLevel | Determines the intensity of black in an image. |
Chromakey | Defines the color in the palatte that will be treated as transparent. |
CropBottom | Defines the percentage of picture removal from the bottom side. |
CropLeft | Defines the percentage of picture removal from the left side. |
CropRight | Defines the percentage of picture removal from the right side. |
CropTop | Defines the percentage of picture removal from the top side. |
DetectMouseClick | Determines whether a mouse click will be detected. |
EmbossColor | Defines the color for embossed color effects. |
Gain | Defines the intensity of all colors in an image. |
Gamma | Defines the amount of contrast for an image. |
GrayScale | Determines whether a picture will display in grayscale mode. |
HRef | Defines a URL for an image. |
ID | Defines a unique identifier for an image. |
Movie | Defines a pointer to a movie image. |
OLEID | Stores the OLE ID of an image. |
Src | Defines a source for the image. |
Title | Defines the title of an image. |
Remarks
This element must be defined within a Shape element.
In addition, the Src attribute must point to an image.
The following is the minimum code needed to produce an image.
<v:rect style="position:relative;top:1;left:1;width:50;height:50"> <v:imagedata src="..\art\kids.jpg"/> </v:rect>Note that in beta releases of VML, this element was called Image.
Examples
Click here to view a simple image.
Click here to view a more complex sample.